<?php

error_reporting(E_ALL);
ini_set('display_errors', '1');
header('Content-type: application/json');

require_once 'Mysql.php';
$mysql = new Mysql();
if(isset($_POST['competition_id'])){
	echo json_encode($mysql->getUsersScoreList($_POST['competition_id']));
}
else {
	echo json_encode($mysql->getUsersScoreList(1));
}



?>
